﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CubicFWNet.Data.Models.Mapping
{
    public class TechnologyManageMap : EntityTypeConfiguration<TechnologyManage>
    {
        public TechnologyManageMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.Equipment)
                .HasMaxLength(64);

            this.Property(t => t.Memo)
                .HasMaxLength(256);

            // Table & Column Mappings
            this.ToTable("TechnologyManage");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.ProductId).HasColumnName("ProductId");
            this.Property(t => t.MaterialId).HasColumnName("MaterialId");
            this.Property(t => t.CreateTime).HasColumnName("CreateTime");
            this.Property(t => t.Status).HasColumnName("Status");
            this.Property(t => t.Amount).HasColumnName("Amount");
            this.Property(t => t.Ch).HasColumnName("Ch");
            this.Property(t => t.Cv).HasColumnName("Cv");
            this.Property(t => t.Tj).HasColumnName("Tj");
            this.Property(t => t.GiveH).HasColumnName("GiveH");
            this.Property(t => t.GiveW).HasColumnName("GiveW");
            this.Property(t => t.CarH).HasColumnName("CarH");
            this.Property(t => t.Equipment).HasColumnName("Equipment");
            this.Property(t => t.Memo).HasColumnName("Memo");
            this.Property(t => t.Data).HasColumnName("Data");
            this.Property(t => t.UseStatus).HasColumnName("UseStatus");
            this.Property(t => t.EquipmentType).HasColumnName("EquipmentType");
            this.Property(t => t.TechType).HasColumnName("TechType");
            this.Property(t => t.MaterialIdsData).HasColumnName("MaterialIdsData");
        }
    }
}
